home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 8_5.lha / 8_5 / puts.c < prev    next >
Text File  |  1993-08-08  |  313b  |  13 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. / write a string to stdout, adding a newline
  6. nt puts(const char *buf)
  7.  
  8.    if (stdout->mode != input)
  9. (*stdout->out) << buf << "\n";
  10.  
  11.    return ferror(stdout) ? EOF : 0;
  12.  
  13.